using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Destra.Tools.DACGenerator
{
	public partial class GenerationTypeDialog : Form
	{
		private GenerationType m_generationType;

		public GenerationTypeDialog()
		{
			InitializeComponent();

			dacLinkLabel.Click += new EventHandler(dacLinkLabel_Click);
			entityLinkLabel.Click += new EventHandler(entityLinkLabel_Click);
		}

		void entityLinkLabel_Click(object sender, EventArgs e)
		{
			m_generationType = GenerationType.Entity;

			this.DialogResult = DialogResult.OK;			
		}

		void dacLinkLabel_Click(object sender, EventArgs e)
		{
			m_generationType = GenerationType.DAC;

			this.DialogResult = DialogResult.OK;
		}

		public GenerationType GenerationType
		{
			get
			{
				return m_generationType;
			}
		}
	}
}